﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WxSDK.Model
{
    [WxPetaPoco.TableName("wx_user")]
    [WxPetaPoco.PrimaryKey("Id")]
    public class wx_user
    {
        #region Model
        private int _id;
        private int _memberid;
        private int _subscribe;
        private string _openid;
        private string _nickname;
        private int _sex;
        private string _language;
        private string _city;
        private string _province;
        private string _country;
        private string _headimgurl;
        private string _subscribe_time;
        private string _unionid;
        private string _remark;
        private int _groupid;
        private string _parentopenid;
        private DateTime _lastmsgtime;
        private string _source;
        private int _islock = 0;
        private int _sortid = 0;
        private DateTime _addtime = DateTime.Now;
        private DateTime _updatetime = DateTime.Now;
        private string _qrurl;
        private string _qr_wxurl;
        private DateTime _qrouttime = DateTime.Now;
        private int _belongid;
        /// <summary>
        /// 微信用户表
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 微信用户所属公众号
        /// </summary>
        public int MemberId
        {
            set { _memberid = value; }
            get { return _memberid; }
        }
        /// <summary>
        /// 是否关注
        /// </summary>
        public int Subscribe
        {
            set { _subscribe = value; }
            get { return _subscribe; }
        }
        /// <summary>
        /// OpenID
        /// </summary>
        public string OpenId
        {
            set { _openid = value; }
            get { return _openid; }
        }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName
        {
            set { _nickname = value; }
            get { return _nickname; }
        }
        /// <summary>
        /// 性别
        /// </summary>
        public int Sex
        {
            set { _sex = value; }
            get { return _sex; }
        }
        /// <summary>
        /// 语言
        /// </summary>
        public string Language
        {
            set { _language = value; }
            get { return _language; }
        }
        /// <summary>
        /// 城市
        /// </summary>
        public string City
        {
            set { _city = value; }
            get { return _city; }
        }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province
        {
            set { _province = value; }
            get { return _province; }
        }
        /// <summary>
        /// 国家
        /// </summary>
        public string Country
        {
            set { _country = value; }
            get { return _country; }
        }
        /// <summary>
        /// 头像
        /// </summary>
        public string HeadImgUrl
        {
            set { _headimgurl = value; }
            get { return _headimgurl; }
        }
        /// <summary>
        /// 关注时间
        /// </summary>
        public string Subscribe_Time
        {
            set { _subscribe_time = value; }
            get { return _subscribe_time; }
        }
        /// <summary>
        /// Union ID
        /// </summary>
        public string Unionid
        {
            set { _unionid = value; }
            get { return _unionid; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        /// <summary>
        /// 分组ID
        /// </summary>
        public int Groupid
        {
            set { _groupid = value; }
            get { return _groupid; }
        }
        /// <summary>
        /// 父级OpenId  推广用得到(参数二维码)
        /// </summary>
        public string ParentOpenId
        {
            set { _parentopenid = value; }
            get { return _parentopenid; }
        }
        /// <summary>
        /// 最后一次交互时间
        /// </summary>
        public DateTime LastMsgTime
        {
            set { _lastmsgtime = value; }
            get { return _lastmsgtime; }
        }
        /// <summary>
        /// 用户来源
        /// </summary>
        public string Source
        {
            set { _source = value; }
            get { return _source; }
        }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public int IsLock
        {
            set { _islock = value; }
            get { return _islock; }
        }
        /// <summary>
        /// 排序ID
        /// </summary>
        public int SortId
        {
            set { _sortid = value; }
            get { return _sortid; }
        }
        /// <summary>
        /// 用户添加时间
        /// </summary>
        public DateTime AddTime
        {
            set { _addtime = value; }
            get { return _addtime; }
        }
        /// <summary>
        /// 用户更新时间
        /// </summary>
        public DateTime UpdateTime
        {
            set { _updatetime = value; }
            get { return _updatetime; }
        }
        /// <summary>
        /// 二维码地址
        /// </summary>
        public string QRUrl
        {
            set { _qrurl = value; }
            get { return _qrurl; }
        }
        /// <summary>
        /// 二维码过期时间
        /// </summary>
        public DateTime QROutTime
        {
            set { _qrouttime = value; }
            get { return _qrouttime; }
        }
        /// <summary>
        /// 二维码解析后的地址 , 用这个地址可以生成自定义二维码
        /// </summary>
        public string QR_WxUrl
        {
            set { _qr_wxurl = value; }
            get { return _qr_wxurl; }
        }
        /// <summary>
        /// 用户所属外键
        /// </summary>
        public int BelongId {
            set { _belongid = value; }
            get { return _belongid; }
        }

        #endregion Model
    }
}
